package com.team11.server.pojo.student;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author DuKang
 * @Date 2021/7/13 10:25
 * @Desc:
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="学生答案对象", description="学生答案")
public class StudentHomeworkAnswer {

    @ApiModelProperty(value = "作业提交表")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "作业状态（0为待提交，1为未批复，2为已批复）")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "附件id")
    @TableField("c_f_id")
    private Integer cFId;

    @ApiModelProperty(value = "附件地址")
    @TableField("c_file")
    private String cFile;

    @ApiModelProperty(value = "附件名称")
    @TableField("c_f_name")
    private String cFName;

    @ApiModelProperty(value = "回答内容")
    private String answer;

    @ApiModelProperty(value = "学生作业提交时间")
    @TableField("h_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date hTime;
}
